<template>
    <el-menu :default-active="activeIndex" class="el-menu-demo" mode="horizontal">
        <el-menu-item index="1" @click="goTo('/admin/company/article/'+companyId)">文章</el-menu-item>
        <el-menu-item index="2" @click="goTo('/admin/company/video/'+companyId)">视频</el-menu-item>
        <el-menu-item index="3" @click="goTo('/admin/company/goods/'+companyId)">产品</el-menu-item>
        <!--<el-menu-item index="4" @click="goTo('/admin/official-account/company/'+companyId)">公众号</el-menu-item>
        <el-menu-item index="5" @click="goTo('/admin/company/dy-ks-account/'+companyId)">视频号</el-menu-item>-->
        <!--<el-menu-item index="6" @click="goTo('/admin/company/article-verify/'+companyId)">未审核文章</el-menu-item>-->
    </el-menu>
</template>

<script>
    export default {
        name: "CompanyMenuComponents",
        props: ["companyId","activeIndex"],
        methods:{
            goTo(url) {
                window.location.href = url;
            }
        }
    }
</script>

<style scoped>
    .el-menu-demo{
        margin-left: 20px;
    }
</style>
